#include <iostream>
#include <string>
using namespace std;

int main()
{
    string buf;
    while (getline(cin,buf)){
        bool flag=true;
        for (size_t i=0; i<buf.size(); i++){
            if (buf[i]==' '||buf[i]=='\t'){
                flag=true;
            }
            else if (flag){
                flag=false;
                buf[i] &= ~(1<<5);
            }
        }
        cout << buf << endl;;
    }
}
